//
//  BKGDImagesView.h
//  BESTKEEP
//
//  Created by 武探 on 2016/10/8.
//  Copyright © 2016年 YISHANG. All rights reserved.
//

#import <UIKit/UIKit.h>

@class BKGDImagesView;

extern NSString *const BKGDImagesViewItemScreenRect;
extern NSString *const BKGDImagesViewItemImage;
extern NSString *const BKGDImagesViewItemIndex;

@protocol BKGDImagesViewDelegate <NSObject>

@optional
-(void)imagesView:(BKGDImagesView*)view didSelectAtIndex:(NSInteger)index atImage:(UIImage*)image;

@end

/**
 图片集合
 */
@interface BKGDImagesView : UIView

@property(nonatomic,weak) id<BKGDImagesViewDelegate> delegate;
@property(nonatomic,strong) NSArray<NSString*> *images;

/**
 最大显示数
 */
@property(nonatomic,assign) NSUInteger maxShowCount;

/**
 是否显示最大图片数
 */
@property(nonatomic,assign) BOOL isShowMaxCountMessage;

-(CGRect)rectToScreenAtItemIndex:(NSInteger)index;

/**
 根据点获取图片item属性 （rect，index，image） point(相对于ImagesView的point)
 */
-(NSDictionary*)propertyWithPoint:(CGPoint)point;

/**
 自动布局或者固定布局 固定布局下可以横向滑动 默认yes自动布局
 */
-(instancetype)initWithAutoLayout:(BOOL)isAutoLayout;

@end
